package com.fcscs.ecms.gwt.server;

import java.util.List;

import com.fcscs.core.gwt.server.FcsRemoteServiceServlet;
import com.fcscs.core.system.ApplicationContextHolder;
import com.fcscs.cservice.domain.Advertisement;
import com.fcscs.ecms.gwt.client.ECMSAdvertiseService;
import com.fcscs.ecms.service.ECMSAdvertiseManager;

public class ECMSAdvertiseServiceImpl extends FcsRemoteServiceServlet implements ECMSAdvertiseService{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5694456261976656859L;

	private ECMSAdvertiseManager advMgr = (ECMSAdvertiseManager) ApplicationContextHolder.getBeanFromContext("ecmsAdvertiseManager");
	
	@Override
	public Advertisement getAdvertisement(long id) {
		return advMgr.getAdvertisement(id);
	}

	@Override
	public List<Advertisement> getAdvertisementList(long orgId, long propId,boolean isCurrent) {
		return advMgr.getAdvertisementList(orgId, propId, isCurrent);
	}

	@Override
	public List<Advertisement> getAdvertisementList(long orgId, long propId,long versionId) {
		return advMgr.getAdvertisementList(orgId, propId, versionId);
	}

	@Override
	public List<Advertisement> saveAdvertisementList(List<Advertisement> adList) {
		return advMgr.saveAdvertisementList(adList);
	}

	@Override
	public Advertisement createAdvertisement(Advertisement ad) {
		return advMgr.createAdvertisement(ad);
	}

	@Override
	public Advertisement saveAdvertisement(Advertisement ad) {
		return advMgr.saveAdvertisement(ad);
	}

	@Override
	public boolean deleteAdvertisement(Advertisement ad) {
		return advMgr.deleteAdvertisement(ad);
	}

	@Override
	public boolean permDeleteAdvertisement(Advertisement ad) {
		return advMgr.permDeleteAdvertisement(ad);
	}

	@Override
	public List<com.fcscs.cservice.domain.model.Advertisement> getAdvertisementViewList(long orgId, long propId) {
		return advMgr.getAdvertisementViewList(orgId, propId);
	}

}
